home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / rocket_launcher.swf / scripts / DefineButton2_175 / BUTTONCONDACTION on(press, keyPress 1).as
Text File  |  2006-01-17  |  608b  |  27 lines

  1. on(press, keyPress "1"){
  2.    if(isPlaying == "5")
  3.    {
  4.       if(soundPlaying == "1")
  5.       {
  6.          tellTarget("/coin in s")
  7.          {
  8.             play();
  9.          }
  10.       }
  11.       if("0" < Credits)
  12.       {
  13.          set("_level0/wc/:timesPay",eval("_level0/wc/:timesPay") + "1");
  14.          singleCredit += "1";
  15.          Credits -= "1";
  16.          creditsPlayed += "1";
  17.          if(singleCredit == "3")
  18.          {
  19.             set("_level0/wc/:timesPay","3");
  20.             multiCredit = "0";
  21.             dealButton = todealButton;
  22.             isPlaying = "10";
  23.          }
  24.       }
  25.    }
  26. }
  27.